<extend name="Public/base"/>
<block name="body">
    <div class="main-title">
        <h2>地址</h2>
    </div>
    <form action="{:U('save')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">地址<span class="check-tips">（请填写您的称呼方便我们和你取得联系）</span></label>
            <div class="controls" id="searcharea"></div>
            <input type="hidden" id="choose_areaid" name="choose_areaid" value="0"/>
        </div>
        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>
<block name="script">
	<script type="text/javascript">
	$(function(){
//        console.log("222");
        //初始地区505
//		init_area(1,{$area_json});
        init_area(1,{$area_json});
        //默认出现的
        get_area(423,'province');
        get_area(500,'city');
        //默认值
        Think.setValue("search_province",423);
        Think.setValue("search_city",500);
        Think.setValue("search_area",505);

	});

	</script>
</block>